/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.qjs.smterp.model;

import java.util.Date;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Vostro 3400
 */
@Entity
@Table(name = "tb_stock_detail")
@XmlRootElement
//@NamedQueries({
//    @NamedQuery(name = "StockDetail.findAll", query = "SELECT s FROM StockDetail s"),
//    @NamedQuery(name = "StockDetail.findByStockDetailId", query = "SELECT s FROM StockDetail s WHERE s.stockDetailId = :stockDetailId")})
public class StockDetail extends BasePojo{
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "STOCK_DETAIL_ID")
    private Integer stockDetailId;
    @Column(name = "ADDRESS")
    private String address;
    @Column(name = "PHONE")
    private String phone;
    @Column(name = "EMAIL")
    private String email;
    @Column(name = "FAX")
    private String fax;
    @Column(name = "DESCRIPTION")
    private String description;
    @Column(name = "PROVINCE")
    private String province;
    @Column(name = "WHATSTORE")
    private String whatstore;
    @Column(name = "OPENTIME")
    @Temporal(TemporalType.TIMESTAMP)
    private Date opentime;
    @Column(name = "CLOSETIME")
    @Temporal(TemporalType.TIMESTAMP)
    private Date closetime;
    @Column(name = "MON_WED_FRI")
    private Boolean monWedFri;
    @Column(name = "TUE_THU_SAT")
    private Boolean tueThuSat;
    @Column(name = "SUNDAY")
    private Boolean sunday;

    public StockDetail() {
    }

    public StockDetail(Integer stockDetailId) {
        this.stockDetailId = stockDetailId;
    }

    public Integer getStockDetailId() {
        return stockDetailId;
    }

    public void setStockDetailId(Integer stockDetailId) {
        this.stockDetailId = stockDetailId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getFax() {
        return fax;
    }

    public void setFax(String fax) {
        this.fax = fax;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getWhatstore() {
        return whatstore;
    }

    public void setWhatstore(String whatstore) {
        this.whatstore = whatstore;
    }

    public Date getOpentime() {
        return opentime;
    }

    public void setOpentime(Date opentime) {
        this.opentime = opentime;
    }

    public Date getClosetime() {
        return closetime;
    }

    public void setClosetime(Date closetime) {
        this.closetime = closetime;
    }

    public Boolean getMonWedFri() {
        return monWedFri;
    }

    public void setMonWedFri(Boolean monWedFri) {
        this.monWedFri = monWedFri;
    }

    public Boolean getTueThuSat() {
        return tueThuSat;
    }

    public void setTueThuSat(Boolean tueThuSat) {
        this.tueThuSat = tueThuSat;
    }

    public Boolean getSunday() {
        return sunday;
    }

    public void setSunday(Boolean sunday) {
        this.sunday = sunday;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (stockDetailId != null ? stockDetailId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof StockDetail)) {
            return false;
        }
        StockDetail other = (StockDetail) object;
        if ((this.stockDetailId == null && other.stockDetailId != null) || (this.stockDetailId != null && !this.stockDetailId.equals(other.stockDetailId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.qjs.smterp.model.StockDetail[ stockDetailId=" + stockDetailId + " ]";
    }
    
}
